package StudyCode.summary.Basic.myint;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class DistanceTwoPoint {
	public static void main(String[] args) {
		double x1 = 1;
		double y1 = 1;
		double x2 = 2;
		double y2 = 2;
		System.out.println("(1,1)跟(2,2)之间的距离是:" + Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));
	}
}
